package com.singzi.testCase;

import org.junit.Test;

import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.Comparator;

public class BitOpera {
    @Test
    public void test01(){
        System.out.println(2 & 3);
        System.out.println(2 | 3);
        System.out.println(2 ^ 3);
        System.out.println(~ 2);
//        System.out.println(2<<);
        System.out.println(9>>2);
        System.out.println(9<<2);

    }
    @Test
    public void test02(){
        int a = 1;
        System.out.println(a << 4);
        Integer []nums = {1,2,3};
        Arrays.sort(nums, new Comparator<Integer>() {
            @Override
            public int compare(Integer o1, Integer o2) {
                return 0;
            }
        });

    }
}
